class getUser {

	constructor() {
		this.userName = '';
		this.password = '';
		this.userid = '';
		this.token = '';
		this.email = '';
	}
	//登录
	Clogin(userName, password) {
		return {
			"UserName": userName,
			"password": password
		}
	}
	Dlogin(data) {
		return {
			token: data.token,
			userId: data.userId,
			userCoverPath: data.userCoverPath,
			isSetL2Pwd: data.isSetL2Pwd
		}
	}

	//注册
	Cregister(userName, password, email) {
		return {
			"UserName": userName,
			"password": password,
			"Email": email
		}
	}

	//返回用户信息
	DgetUserMessage(user) {
		return {
			userId: user.userId,
			userName: user.userName,
			userEmail: user.userEmail,
			userCoverPath: user.userCoverPath
		}
	}
	//提交二级密码注册
	C2pwd(pass) {
		return {
			"L2Pwd": pass
		}
	}
	//提交二级密码验证
	Ctest2pwd(pass){
		return{
			l2Pwd:pass
		}
	}
}



export default getUser;
